package com.yang.qgg_demo.service.impl;

import com.yang.qgg_demo.entity.Goods;
import com.yang.qgg_demo.entity.User;
import com.yang.qgg_demo.mapper.GoodsMapper;
import com.yang.qgg_demo.mapper.UserMapper;
import com.yang.qgg_demo.service.GoodsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yang.qgg_demo.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GoodsServicelmpl extends ServiceImpl<GoodsMapper,Goods> implements GoodsService {

    @Autowired
    private   GoodsMapper goodsMapper;

    @Override
    public Integer addGoods() {
        return goodsMapper.selectTotalNumber();
    }
}

